package com.xiaomi.service.Impl;

import com.xiaomi.dao.DingdanzhuangtaiMapper;
import com.xiaomi.entity.Dingdanzhuangtai;
import com.xiaomi.service.DingdanzhuangtaiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName DingdanzhuangtaiServiceImpl
 * @Description TODO
 * @Author 獄
 * @Date 2021/11/29 0:07
 */
@Service
public class DingdanzhuangtaiServiceImpl implements DingdanzhuangtaiService {
    @Resource
    DingdanzhuangtaiMapper dingdanzhuangtaiMapper;

    @Override
    public List<Dingdanzhuangtai> selectAll(Map<String, Object> pars) {
        return dingdanzhuangtaiMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return dingdanzhuangtaiMapper.count(pars);
    }

    @Override
    public int update(Dingdanzhuangtai dingdanzhuangtai) {
        return dingdanzhuangtaiMapper.update(dingdanzhuangtai);
    }

    @Override
    public int add(Dingdanzhuangtai dingdanzhuangtai) {
        return dingdanzhuangtaiMapper.add(dingdanzhuangtai);
    }

    @Override
    public int del(int id) {
        return dingdanzhuangtaiMapper.del(id);
    }

}
